package com.yonyou.pmclouds.contacttype.controller;

import java.util.List;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.dubbo.config.annotation.Reference;
import com.yonyou.pmclouds.ApplicationConsts;
import com.yonyou.pmclouds.contacttype.entity.ContactTypeRefVO;
import com.yonyou.pmclouds.contacttype.service.rmiitf.ContactTypeRemoteMobService;

/**
 * 联系类型档案移动端controller
 * 
 * @author zhangwce
 *
 */
@Controller
@RequestMapping(value="/mobile/contacttype")
public class ContactTypeMobController {

	@Reference(version = ApplicationConsts.APPLICATION_VERSION)
	public ContactTypeRemoteMobService contactTypeRemoteMobService;
	
	@RequestMapping(value="/queryConTypesByProject")
	@ResponseBody
	public List<ContactTypeRefVO> queryConTypesByProject(HttpServletResponse response,@RequestParam String pk_project){
	    response.setHeader("Access-Control-Allow-Origin", "*");
		return contactTypeRemoteMobService.queryConTypesByProject(pk_project);
	}
	
}
